using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace PDAChess
{
    public partial class ucMain: UserControl
    {
        public delegate void NewGame_Click(object sender, EventArgs e);
        public event NewGame_Click NewGameClick;

        public delegate void Quit_Click(object sender, EventArgs e);
        public event Quit_Click QuitClick;

        public ucMain()
        {
            InitializeComponent();
        }

        private void btnQuit_Click(object sender, EventArgs e)
        {
            if (QuitClick != null)
            {
                QuitClick(this, e);
            }
        }

        private void btnNewGame_Click(object sender, EventArgs e)
        {
            if (NewGameClick != null)
            {
                NewGameClick(this, e);
            }

        }
    }
}
